from flask_restplus import Resource, Namespace, fields, marshal, reqparse, Model

base_model = Model('base_model', {
    'id': fields.Integer(description='编号'),
    'name': fields.String(description='名称'),
    'short_name': fields.String(description='名称拼音缩写'),
    'notes': fields.String(description='备注'),
    'is_active': fields.Boolean(description='启用状态'),
    "create_datetime": fields.DateTime(description='创建时间'),
    "update_datetime": fields.DateTime(description='更新时间'),
})

pagination_model = Model('pagination_model', {
    "pages": fields.Integer(),
    "page": fields.Integer(),
    "per_page": fields.Integer(),
    "total": fields.Integer(),
})
